package edu.gatech.cs2340.teamrocket.control.networking.impl.message;

import edu.gatech.cs2340.teamrocket.control.networking.message.Message;

/**
 * Represents a chat message.
 *
 * @author Joe Tacheron
 */
public class ChatMessage extends Message {

    public ChatMessage(String name, String comment){
        super(new Object[]{name, comment});
    }

    /**
     *
     * @return The name of the sender.
     */
    public String getName(){
        return (String)message[0];
    }

    /**
     *
     * @return What the user had to say.
     */
    public String getComment(){
        return (String)message[1];
    }
}
